﻿@model Susha.Models.Pages.UserLoginPage

@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@section scripts{
    @Scripts.Render("/Scripts/common/user.js")
}

<h2>Login</h2>
@using (Html.BeginForm("Login", "User", FormMethod.Post, new { @class = "" }))
{
    <fieldset>
        <legend>Login</legend>
        
        @* Email *@
        <label for="Email">
            Почта:
        </label>
        @Html.TextBox("Email", Model.User.Email, new { @class = "" })
        @Html.ValidationMessage("Email")<br />
       
        @* Password *@
        <label for="Password">
            Пароль:
        </label>
        @Html.Password("Password", Model.User.Password, new { @class = "" })
        @Html.ValidationMessage("Password")<br />
        
        @* Submit *@
        <input type="submit" value="Log in" />
    </fieldset>
}